package com.example.hellonotes.utils;

import com.example.hellonotes.R;
import com.example.hellonotes.R.drawable;
import com.nostra13.universalimageloader.core.DisplayImageOptions;

import android.graphics.Bitmap;

public class ImageOptionsHelp {

	public static DisplayImageOptions getImgOptions() {
		DisplayImageOptions imgOptions = new DisplayImageOptions.Builder()
			.cacheOnDisk(true)
			.cacheInMemory(true)
			.bitmapConfig(Bitmap.Config.RGB_565)
			.showImageOnLoading(R.drawable.timeline_image_loading)
			.showImageForEmptyUri(R.drawable.timeline_image_loading)
			.showImageOnFail(R.drawable.timeline_image_failure)
			.build();
		return imgOptions;
	}
	
}
